package com.netease.nie.service;

import java.util.Collections;
import java.util.List;

import org.apache.commons.collections.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.netease.nie.dao.ColumnInfoDao;
import com.netease.nie.model.ColumnInfo;

/**
 * 
 * @author KingsHunter
 * @createDate July 1st,2016
 *
 */
@Service
public class ColumnInfoServiceImpl implements ColumnInfoService {

	@Autowired
	private ColumnInfoDao columnInfoDao;
	
	public List<ColumnInfo> queryAllColumnInfo() {
		List<ColumnInfo> columnInfoList = columnInfoDao.queryAllColumnInfo();
		if (CollectionUtils.isNotEmpty(columnInfoList))
			return columnInfoList;
		return Collections.emptyList();
	}

}
